<div class="fsh-pop">
    <div id="add_form_Speciality" class="layui-form"  lay-filter="add_form_Speciality">
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label"><i>*</i>学校名称</label>
                <div class="layui-input-block">
                    <input type="hidden" name="speciality_id" readonly />
                    <input id="_schoolName2" type="text" name="schoolName" readonly lay-verify=""
                           placeholder="请选择"
                           class="layui-input">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label"><i>*</i>学校代码</label>
                <div class="layui-input-block">
                    <input id="_schoolCode2" type="text" name="schoolCode" readonly lay-verify="required"
                           placeholder="请选择" class="layui-input">
                </div>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label"><i>*</i>上级专业</label>
                <div class="layui-input-block">
                    <input id="_speName" type="text" name="pTitle" readonly lay-verify="required" placeholder="请输入关键字" class="layui-input"
                           value="<%=pid||'顶级'%>">
                </div>
            </div>
            <div class="layui-inline">
                <label class="layui-form-label"><i>*</i>专业代码</label>
                <div class="layui-input-block">
                    <input id="_speCode" type="text" name="pid" readonly class="layui-input" value="<%=pid||0%>">
                </div>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label"><i>*</i>专业名称</label>
            <div class="layui-input-block">
                <input type="text" name="title" lay-verify="required" placeholder="请输入关键字" class="layui-input"
                       value="<%=title%>">
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
    layui.use(['table', 'laydate', 'form'], function () {
        var form = layui.form;
        // 选择学校
        selectSchool('_schoolName2', '_schoolCode2');
        //选择专业
        selectSpe();


        var _formObj = JSON.parse($('<div>').html('<%=$data%>').text())||{};

        console.log(_formObj);
        form.val('add_form_Speciality', _formObj);

    });


</script>
